/* 移动端 */
@media screen and (max-width: 800px) {
    .lover { padding: 50px 20px 30px 20px; width: 300px; }
    .lover-item img {
        width: 80px;
        height: 80px;
        border-radius: 40px;
    }
    .lover-item img.heart { width: 50px;height: 50px; }
    .lover-item span { font-size: 18px; }
    .time-count { font-size: 15px; }
    .time-count .time-num { font-size: 25px; }
    .story-line { width: 100%; padding: 50px 0 20px; }
    .story-line::before { left: 20px; }
    .story-line::after { left: 20px; }
    .story-line-item { justify-content: flex-end; padding-right: 30px; }
    .story-line-item::after { left: 20px; }
    .content-wrap { width: 260px; }
}

/* PC端 */
@media screen and (min-width: 800px) {
    .lover { padding: 50px 70px 30px 70px; width: 90%; max-width: 950px; }
    .lover-item img {
        width: 150px;
        height: 150px;
        border-radius: 100px;
    }
    .lover-item img.heart { width: 80px; height: 80px; }
    .lover-item span { font-size: 25px; }
    .time-count { font-size: 30px; }
    .time-count .time-num { font-size: 80px; padding: 0 10px; }
    .story-line { width: 950px; padding: 100px 0 20px; }
    .story-line::before { left: 50%; }
    .story-line::after { left: 50%; }
    .story-line-item::after { left: 50%; }
    .story-line-item:nth-child(odd) { justify-content: flex-start; }
    .story-line-item:nth-child(even) { justify-content: flex-end; }
    .content-wrap { width: 380px; }
}

.back-image {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('~/assets/images/wedding2.png') no-repeat center 60% / cover;
}

.container {
    background-color: transparent;
    overflow: hidden;
}

.lover {
    display: flex;
    justify-content: space-around;
    align-items: center;
    backdrop-filter: blur(10px);
    background-color: hsla(0, 0%, 100%, .1);
    border-radius: 20px;
    margin: 150px auto 180px auto;
}

.lover-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lover-item img {
    border: 2px solid rgba(255, 255, 255, .5);
}

.lover-item img.heart {
    border: none;
    animation: heartbeat 1.2s ease-in-out infinite;
}

.lover-item span {
    color: #fff;
    font-size: 25px;
    font-weight: bold;
}

@keyframes heartbeat {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.3);
    }
}

.story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    background-image: linear-gradient(90deg, #eee 1px, #fff 0);
    background-size: 52px 52px;
    box-shadow: 0 -30px 50px 30px #fff;
    opacity: .9;
    padding: 40px 0;
}

.story-time {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.time-title {
    font-size: 30px;
}

.time-title span {
    display: block;
    background-image: linear-gradient(270deg, #ff4500, orange, gold, #90ee90, #0ff, #1e90ff, #9370db, #ff69b4, #ff4500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: bg-gradient 10s ease infinite;
    /* 此动画定义在 footer.css 文件里面 */
}

.time-count .time-num {
    color: #FF0066;
}

.story-line {
    margin: 0;
    position: relative;
    list-style: none;
    margin-top: 50px;
}

.story-line::before {
    content: "";
    width: 4px;
    border-radius: 50%;
    position: absolute;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    background-color: orange;
}

.story-line::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 4px solid orange;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    background-color: #fff;
    animation: shake 1.5s linear alternate infinite;
}

@keyframes shake {
    from {
        box-shadow: 0 0 15px 2px #ff416c;
    }

    to {
        box-shadow: 0 0 0 0 #ff416c;
    }
}

.story-line-item {
    display: flex;
    margin: 30px 0;
    position: relative;
}

.story-line-item::after {
    content: "";
    width: 12px;
    height: 12px;
    border: 4px solid #1e90ff;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    transform: translateX(-50%);
    background-color: #fff;
}

.content-wrap {
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 15px 1px #ddd;
    transition: all .3s linear;
}

.content-wrap:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px 1px #666;
}

.content-text {
    padding-bottom: 10px;
    text-align: justify;
}

.content-time {
    padding-top: 10px;
    color: #666;
}

.content-time span {
    color: #FFCC00;
}

.publish {
    font-size: 50px;
    margin-top: 30px;
    color: #FF0066;
}